package com.business.common.enums;

public enum ErrorEnum {
	SUCCESS(0,"成功"),
    NO_PERMISSION(1,"权限不足"),
    SERVER_ERROR(2,"服务器异常,请稍后再试"),
    AUTH_ERROR(3,"未登录或登录超时，请先登录"),
    PARAMS_ERROR(4,"参数错误"),
    RPC_ERROR(5, "远程调用错误"),
    UNKNOWN_ERROR(6,"发生错误"),
	PARAMS_LOSE(7,"参数丢失"),
    FREQUENT_OPERATION(8,"操作频繁，请待会再试");


    private int code;
    private String msg;

    ErrorEnum(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
